package mww.javabean.service;

import java.util.Map;

import mww.common.ServiceException;
import mww.javabean.entity.TeacherC;

public interface TeacherCService {
	// 添加教师任课信息
	public void addTeacherC(TeacherC teacherC) throws ServiceException;

	// 删除教师任课信息
	public void delTeacherC(String teacherNo, String courseNo, Integer tcTeacherNo) throws ServiceException;

	// 根据教师编号查询所有任课信息
	public Map findTeacherCByTeacherNo(String teacherNo, Integer status, Integer curPage) throws ServiceException;

	// 根据教学班号和教师编号和课程编号查询教师任课信息
	public TeacherC findTeacherCById(String teacherNo, String courseNo,Integer tcTeacherNo) throws ServiceException;


	public String findTeacherNo(Integer tcTeacherNo, String courseNo) throws ServiceException;

	public Map findAllTeacherC(Integer curPage) throws ServiceException;

	// 增加选课人数
	public void incTcSel(String teacherNo, String courseNo,Integer tcTeacherNo) throws ServiceException;

	// 减少选课人数
	public void decTcSel(String teacherNo, String courseNo,Integer tcTeacherNo) throws ServiceException;

	// 多条件查询教师任课信息
	public Map findAllTeacherCByMostCon(TeacherC condition, Integer curPage) throws ServiceException;

	public void updateScoreInTeacherC(String teacherNo, String courseNo,Integer tcTeacherNo, float maxScore, float minScore, float avgScore)
			throws ServiceException;

	public boolean checkTeacherCExistByCourseNo(String courseNo) throws ServiceException;

	public boolean checkTeacherCExistByTeacherNo(String teacherNo) throws ServiceException;

	
	public boolean checkExistConflict(String teacherNo, String courseNo,Integer tcTeacherNo) throws ServiceException;

	public boolean checkTimeConflict(String teacherNo, String tcTime) throws ServiceException;
	
	//检查 任课信息是否已满
	public boolean isFull(String teacherNo,String courseNo,Integer tcTeacherNo) throws ServiceException;
}
